package com.xiaoniu.forum.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xiaoniu.forum.common.utils.PageUtils;
import com.xiaoniu.forum.common.utils.Query;

import com.xiaoniu.forum.dao.TabbarDao;
import com.xiaoniu.forum.entity.TabbarEntity;
import com.xiaoniu.forum.service.TabbarService;


@Service("tabbarService")
public class TabbarServiceImpl extends ServiceImpl<TabbarDao, TabbarEntity> implements TabbarService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TabbarEntity> page = this.page(
                new Query<TabbarEntity>().getPage(params),
                new QueryWrapper<TabbarEntity>()
        );

        return new PageUtils(page);
    }

}